<?php /** @noinspection PhpPropertyCanBeReadonlyInspection */
/** @noinspection PhpPropertyCanBeReadonlyInspection */
declare(strict_types=1);

namespace Dreamcat\ApiDoc\Annotations;

use Attribute;
use JetBrains\PhpStorm\Immutable;

/**
 * 用来说明array是map
 * @author vijay
 */
#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_PROPERTY)]
#[Immutable]
class MapModelDesc
{
    /**
     * @param string $keyDesc key的定义描述
     * @param string $valueDesc 值的定义描述
     */
    public function __construct(private string $keyDesc, private string $valueDesc = "")
    {
    }

    /**
     * @return string key的定义描述
     */
    public function getKeyDesc(): string
    {
        return $this->keyDesc;
    }

    /**
     * @return string 值的定义描述
     */
    public function getValueDesc(): string
    {
        return $this->valueDesc;
    }
}

# end of file
